﻿using WeDonekRpc.Helper.Validate;
namespace Shop.RemoteModel.Advert.Model
{
    public class AdvertQueryParam
    {
        /// <summary>
        /// 广告位Id
        /// </summary>
        [NumValidate("shop.advert.place.id.error", 1)]
        public long PlaceId
        {
            get;
            set;
        }
        /// <summary>
        /// 查询关键字
        /// </summary>
        [LenValidate("public.query.key.error", 0, 50)]
        public string QueryKey
        {
            get;
            set;
        }
        [EnumValidate("shop.advert.relation.type.error", typeof(AdvertRelationType))]
        public AdvertRelationType? RelationType
        {
            get;
            set;
        }
        public long? RelationId
        {
            get;
            set;
        }
        /// <summary>
        /// 状态
        /// </summary>
        [EnumValidate("shop.advert.status.error", typeof(AdvertStatus))]
        public AdvertStatus[] Status
        {
            get;
            set;
        }

        public DateTime? Begin
        {
            get;
            set;
        }

        public DateTime? End
        {
            get;
            set;
        }
    }
}
